var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();

WebApplication app = builder.Build();
app.UseWebSockets();  //添加Websocket中间件
app.MapControllers();
app.Run();
